# $Id: PKGBUILD 57168 2011-10-22 23:48:17Z ebelanger $
# Maintainer: Eric Bélanger <eric@archlinux.org>

pkgname=emacs-pkgbuild-mode
pkgver=0.10
pkgrel=2
pkgdesc="A major mode for creating packages with emacs"
arch=('any')
url="http://github.com/juergenhoetzel/pkgbuild-mode"
license=('GPL')
depends=('emacs')
conflicts=('pkgbuild-mode')
provides=('pkgbuild-mode')
replaces=('pkgbuild-mode')
install=emacs-pkgbuild-mode.install
source=(https://github.com/juergenhoetzel/pkgbuild-mode/tarball/${pkgver})
sha1sums=('f85de4b1e212b6bd09c345ad9b53a5af10172538')

package() {
  cd "${srcdir}"/juergenhoetzel-pkgbuild-mode-*
  emacs -batch -f batch-byte-compile pkgbuild-mode.el
  install -d "${pkgdir}/usr/share/emacs/site-lisp"
  install -D -m644 pkgbuild-mode.el pkgbuild-mode.elc "${pkgdir}/usr/share/emacs/site-lisp"
}
